<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>

    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://"
                + request.getServerName() + ":" + request.getServerPort()
                + path;
    %>
    <meta charset="utf-8" />
    <title>添加管理员</title>
    <!-- Bootstrap 核心 CSS 文件https://git.oschina.net/cbyh1313/photoShareProject1.git-->
    <link href="../resources/package/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- 在bootstrap.min.js 之前引入 -->
    <script src="../resources/package/jquery/jquery-3.1.1.min.js"></script>
    <!-- Bootstrap 核心 JavaScript 文件 -->
    <script src="../resources/package/bootstrap/js/bootstrap.min.js"></script>
    <!--jquery.validate-->
    <script type="text/javascript" src="../resources/login/js/jquery.validate.min.js" ></script>
    <%--<script type="text/javascript" src="resources/login/js/message.js" ></script>--%>
    <style type="text/css">
        body{background: url(../resources/login/img/4.jpg) no-repeat;background-size: cover;font-size: 16px;}
        .form{background: rgba(255,255,255,0.2);width:400px;margin:100px auto;}
        #register_form{display: block;}
        .fa{display: inline-block;top: 27px;left: 6px;position: relative;color: #ccc;}
        input[type="text"],input[type="password"]{padding-left:26px;}
    </style>
</head>
<body>
<div class="container">
    <div class="form row">
        <form class="form-horizontal col-sm-offset-3 col-md-offset-3" id="addAdmin_form" action="addAdmin" method="post">
            <h3 class="form-title">添加管理员</h3>
            ${addAdminMessage}
            <div class="col-sm-9 col-md-9">
                <div class="form-group">
                    <i class="fa glyphicon glyphicon-user"></i>
                    <input title="请输入5-20个字符" class="form-control required" type="text" placeholder="管理员账号" name="account" autofocus="autofocus"/>
                </div>
                <div class="form-group">
                    <i class="fa glyphicon glyphicon-lock"></i>
                    <input title="请输入6-20个字符" class="form-control required" type="password" placeholder="密码" id="addAdmin_password" name="password" value="${password}"/>
                </div>
                <div class="form-group">
                    <i class="fa glyphicon glyphicon-lock"></i>
                    <input title="请输入6-20个字符" class="form-control required" type="password" placeholder="确认密码" name="rpassword" value="${password}" />
                </div>
                <%--<div class="form-group">--%>
                    <%--<i class="fa glyphicon glyphicon-earphone"></i>--%>
                    <%--<input class="form-control required" type="text" placeholder="手机" name="mobilephone" value="${mobilephone}"/>--%>
                <%--</div>--%>
                <div class="form-group">
                    <i class="fa glyphicon glyphicon-envelope"></i>
                    <input class="form-control eamil" type="text" placeholder="邮箱" name="email" value="${email}"/>
                    <hr />
                </div>

                <div class="form-group">
                    <input type="submit" class="btn btn-success pull-right" value="提交"/>
                    <%--<input type="submit" class="btn btn-info pull-left" id="back_btn" value="返回"/>--%>
                    <a href="<%=basePath%>/admin/adminIndex"><input type="button" class="btn btn-info pull-left" value="返回"/></a>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="../resources/login/js/main.js" ></script>
</body>
</html>
